// OrderDetails.java
package com.wg.msorderds.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("orderdetails")
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "订单详情表")
public class OrderDetails implements Serializable {
    @Schema(description = "订单详情编号")
    @TableId(type = IdType.AUTO) // 添加主键注解
    private Integer id;

    @Schema(description = "订单编号")
    private Integer orderId;

    @Schema(description = "店铺ID")
    private Integer shopId;

    @Schema(description = "商品ID")
    private Integer productId;
    @Schema(description = "商品规格")
    private String sku;

    @Schema(description = "数量")
    private Integer count;
}
